package org.example.springframework.test.bean;

/**
 * @author DeYou
 * @date 2022/10/26
 */
public class UserService {

    private String name;

    public UserService() {

    }

    public UserService(String name) {
        this.name = name;
    }

    /**
     * 存放Bean
     */
    public void queryInfo(){
        System.out.println("查询用户信息！"+ name);
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("");
        sb.append("").append(name);
        return sb.toString();
    }
}